//
//  JobListCell.m
//  MyProject
//
//  Created by 石小强 on 2018/3/21.
//  Copyright © 2018年 yanjiaming. All rights reserved.
//

#import "JobListCell.h"

@implementation JobListCell

- (void)setModel:(PositionModel *)model {
    _model = model;
    [self.headerIV sd_setImageWithURL:ImageURLWithKey(model.companyLogo) placeholderImage:PlaceholderImage];
    self.nameL.text = model.positionName;
    self.salaryL.text = [NSString stringWithFormat:@"[%@k-%@k]", model.minSalary, model.maxSalary];
    self.companyL.text = model.companyAbbreviatedName;
    self.infoL.text = [NSString stringWithFormat:@"%@-%@ | %@名认证员工点评", model.regionName, model.workingPlaceTradingArea, model.evaluateCount];
    self.rankL.text = [NSString stringWithFormat:@"%@分", model.avgScore];
    
    if (model.targetCompany) {
        self.targetIV.hidden = NO;
        self.rankL.hidden = YES;
    } else {
        self.targetIV.hidden = YES;
        self.rankL.hidden = NO;
    }
}

@end
